#!/usr/bin/python3
#coding=utf8

from plugins import BaseConfig,BasePOC,BaseEXP

import requests

class CONFIG(BaseConfig):
    server = 'iis'


class POC(BasePOC):
    def test(self):
    	
        try:
            req = requests.put('%s/test.txt'%':'.join(args), data = "test!", timeout = CONFIG.http_timeout)
            if req.status_code == 201:
            	self.log.warn('扫描到 %s:%s 存在 iisput 漏洞。'%(host,port))
                return True
        except:
            return False




